package javase.ch06.junit;

import java.util.ArrayList;

public class UserSerevice {

    //登录
    public boolean login(String username, String password){
        if("admin".equals(username) && "admin".equals(password)){
            return true;
        }
        return false;
    }

    //注册
    public boolean register(String username, String password){
        ArrayList<String> list = new ArrayList<>();
        boolean flag = list.add(username);
        System.out.println(list);
        return flag;
    }
    public static void main(String[] args) {

    }
}
